home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Aztec C v5.2a disk 4.adf
/
204inc_i.lzh
/
exec
/
semaphores.i
< prev
next >
Wrap
Text File
|
1991-03-14
|
1KB
|
66 lines
IFND EXEC_SEMAPHORES_I
EXEC_SEMAPHORES_I SET 1
**
** $Filename: exec/semaphores.i $
** $Release: 2.04 $
** $Revision: 36.6 $
** $Date: 90/05/10 $
**
** Definitions for locking functions.
**
** (C) Copyright 1986,1987,1988,1989 Commodore-Amiga, Inc.
** All Rights Reserved
**
IFND EXEC_NODES_I
INCLUDE "exec/nodes.i"
ENDC ; EXEC_NODES_I
IFND EXEC_LISTS_I
INCLUDE "exec/lists.i"
ENDC ; EXEC_LISTS_I
IFND EXEC_PORTS_I
INCLUDE "exec/ports.i"
ENDC ; EXEC_PORTS_I
*----------------------------------------------------------------
*
* Signal Semaphore Structure
*
*----------------------------------------------------------------
** Private structure used by ObtainSemaphore()
STRUCTURE SSR,MLN_SIZE
APTR SSR_WAITER
LABEL SSR_SIZE
** Signal Semaphore data structure
STRUCTURE SS,LN_SIZE
WORD SS_NESTCOUNT
STRUCT SS_WAITQUEUE,MLH_SIZE
STRUCT SS_MULTIPLELINK,SSR_SIZE
APTR SS_OWNER
WORD SS_QUEUECOUNT
LABEL SS_SIZE
*----------------------------------------------------------------
*
* Semaphore Structure (Procure/Vacate type)
*
*----------------------------------------------------------------
STRUCTURE SM,MP_SIZE
WORD SM_BIDS ; number of bids for lock
LABEL SM_SIZE
*------ unions:
SM_LOCKMSG EQU MP_SIGTASK
ENDC ; EXEC_SEMAPHORES_I